package com.xixi.Service.Impl;

import com.xixi.Service.EmployeeService;
import com.xixi.dao.EmployeeDao;
import com.xixi.demo.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {
@Autowired
    private EmployeeDao employeeDao;


    public List<Employee> findAllEmployee() {
        return employeeDao.findAllEmployee();
      /*  return null;*/
    }

    public void addEmployee(Employee employee) {
   employeeDao.addEmployee(employee);
    }
}
